<?php get_header(); ?>
<section id="blog-posts">
    <div class="container_24 back">

		<div id="primary">

				<?php while ( have_posts() ) : the_post(); ?>

                <div class="grid_22 push_2 listagem-de-post" id="post-<?php the_ID(); ?>">
                    <time class="grid_22 alpha"><?php echo get_the_date() ?></time>
                    <h2 class="grid_22 alpha"><a href="<?php the_permalink(); ?>" title="Link para <?php the_title(); ?>"><?php the_title();?></a></h2>
                    <div class="grid_21  conteudo"><?php the_content(); ?></div>
                    <span class="grid_5  alpha " id="autor">Postado por <?=get_the_author(); ?>.</span>
                    <div class="grid_5 push_8 alpha redes-sociais">
                        <div class="bt-share grid_3 alpha"><fb:share-button type="button_count" href="<?php the_permalink() ?>"></fb:share-button></div>
                        <div class="bt-curtir grid_3"><iframe src="http://www.facebook.com/plugins/like.php?app_id=115983941821003&amp;href=<?php the_permalink(); ?>&amp;send=false&amp;layout=button_count&amp;width=56&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65&locale=pt_BR" lang="pt" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:56px; height:65px;" allowTransparency="true"></iframe></div>
                    </div>
                </div>

				<?php endwhile; // end of the loop. ?>

                <script type="text/javascript">
                    window.___gcfg = {lang: 'pt-BR'};

                    (function() {
                        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                        po.src = 'https://apis.google.com/js/plusone.js';
                        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                    })();
                </script>
                <script type="text/javascript" src="http://connect.facebook.net/pt_BR/all.js#xfbml=1&appId=219315778152182" ></script>
                <script type="text/javascript" src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" ></script>

		</div><!-- #primary -->
        <div class="grid_24 setas">
            <?php previous_post_link('%link', '<div class="box-anterior">
                 <span class="grid_3 push_9 anterior">Anterior</span>
                 </div>'); ?>
            <?php next_post_link('%link', '<div class="box-proximo">
                                     <span class="grid_3 push_9 proximo">Próximo</span>
                                                       </div>'); ?>
        </div>
        <div class="grid_24 facebook-coments">
            <div class="box-coments ">
                <h3>Comentários</h3>
                <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="6" data-width="530"></div>
                <script type="text/javascript" src="http://connect.facebook.net/pt_BR/all.js#xfbml=1&appId=219315778152182"></script>
                <script type="text/javascript" src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"></script>
                <script type="text/javascript">                        if(jQuery('.fb_share_size_Small').lenght != 0){ console.log('teet');
                    jQuery('.fb-share').html('' +
                            '<span class="fb_share_size_Small fb_share_count_wrapper"><span>' +
                            '</span><span class="fb_share_count_nub_top "></span>' +
                            '<span class="fb_share_count  fb_share_count_top"><span class="fb_share_count_inner">0</span>' +
                            '</span><span class="FBConnectButton FBConnectButton_Small" style="cursor:pointer;">' +
                            '<span class="FBConnectButton_Text">Compartilhar</span></span></span>');
                }
                </script>
            </div>
        </div>

    </div>
</section>

<?php get_footer(); ?>